package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserFriendsService;
import com.gidgabs.modules.dao.TbUserFriendsDao;
import com.gidgabs.modules.entity.TbUserFriendsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbUserFriendsServiceImpl implements TbUserFriendsService {
	@Autowired
	private TbUserFriendsDao userFriendsDao;
	
	@Override
	public TbUserFriendsEntity queryObject(Integer id){
		return userFriendsDao.queryObject(id);
	}
	
	@Override
	public List<TbUserFriendsEntity> queryList(Map<String, Object> map){
		return userFriendsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userFriendsDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserFriendsEntity userFriends){
		userFriendsDao.save(userFriends);
	}
	
	@Override
	public void update(TbUserFriendsEntity userFriends){
		userFriendsDao.update(userFriends);
	}
	
	@Override
	public void delete(Integer id){
		userFriendsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userFriendsDao.deleteBatch(ids);
	}
	
}
